<h2 class="contentTitle">Dated League Table</h2>

<fieldset>
<table class="contentTable">
<tr>
<td class="label">Competition:</td>
<td><a href="javascript:editObject('<TMPL_VAR NAME=COMPETITION_PK_OBJECT_ID>','COMPETITION')"><TMPL_VAR NAME=COMPETITION_COMPETITION_NAME></a>
</td>
</tr>
<tr>
<td class="label">Table:</td>
<td><input type=hidden name="FK_LTABLE_ID" value="<TMPL_VAR NAME=LTABLE_PK_OBJECT_ID>">
<a href="javascript:editObject('<TMPL_VAR NAME=LTABLE_PK_OBJECT_ID>','LTABLE')"><TMPL_VAR NAME=LTABLE_LTABLE_NAME></a> <input type=button class="button" onClick="editObject('<TMPL_VAR NAME=LTABLE_PK_OBJECT_ID>','LTABLE');" value="Edit">
</td>
</tr>
<tr>
<td class="label">Table Date:</td>
<td><input type=text name=DLTABLE_DATE value="<TMPL_VAR NAME=DLTABLE_DATE>" size=10><br>
<small>YYYY-MM-DD</small></td>
</tr>
</table>
<div class="submit">
<input type=button class="button" onClick="updateObject('DLTABLE','<TMPL_VAR NAME=o>','<TMPL_VAR NAME=p>');" value="Update &raquo;"> 
</div>

<h3 class="contentSubTitle">Table</h3>

<table class="contentTable">
<tr>
<th>Team:</td>
<th>Pld</td>
<th>W</td>
<th>D</td>
<th>L</td>
<th>F</td>
<th>A</td>
<th>Pts</td>
</tr>
<TMPL_VAR NAME=DLTABLE_LTABLEROWS_EDIT>
</table>
<div class="submit">
<input type=button class="button" onClick="document.forms[0].s.value='Dltable.Edit.GetURL'; document.forms[0].submit();" value="Update from URL">
<input type=button class="button" onClick="updateObject('DLTABLE','<TMPL_VAR NAME=o>','<TMPL_VAR NAME=p>')" value="Update &raquo;"> 
</div>

<h3 class="contentSubTitle">Row Details</h3>

<table>
<tr>
<th>Team:</td>
<th>Highlight</td>
<th>Notes</td>
</tr>
<TMPL_VAR NAME=DLTABLE_LTABLEDETAILS_EDIT>
</table>
<div class="submit">
<input type=button class="button" onClick="updateObject('DLTABLE','<TMPL_VAR NAME=o>','<TMPL_VAR NAME=p>')" value="Update &raquo;">
</div>
</fieldset>

<TMPL_VAR NAME=OBJECTS> 